<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>管理员管理页面</title>
		<jsp:include page="/common/head.jsp"></jsp:include>
		<link rel="stylesheet" type="text/css" href="common/css/tjyxCRUD.css" />
		<script type="text/javascript" src="common/js/tjyxCRUD.js"></script>
			<script type="text/javascript">
		var tjyxTableTitle = "新闻信息维护"; //表格标题
		var loadDataURL = "maintain_NewsAction_managerNewsList.do"; //数据装载请求地址
		var deleteURI = "maintain_NewsAction_deleteNews.do?ids="; //删除请求地址
		var columnsFields = [
			{field:'ck',checkbox:true},
			{field:'id',title:'id',align:'center',width:120},
			{field:'newsTitle',title:'新闻标题',align:'center',width:520},
			{field:'newsClassId',title:'所属类别',align:'center',width:120},
			{field:'isChecked',title:'状态',align:'center',width:60},
			{field:'addTime',title:'添加时间',align:'center',width:150},
			{field:'opt',title:'操作',width:200,align:'center', rowspan:1,
				formatter:function(value,rowData,rowIndex){	
					var viewURI = 'maintain_NewsAction_viewNewsById.do?id=' + rowData.id;  //查看窗口请求地址
					var updateURI = 'maintain_NewsAction_updateNewsById.do?id=' + rowData.id; //更新窗口请求地址			
					return "<a title='查看详细信息' class='viewInfo' href='javascript:tjyxWindowView(\""+ viewURI + "\")'>【查看】</a> <a title='修改信息' class='updateInfo' href='" + updateURI +  "'>【修改】</a>";	
				}
			}	
		]
			</script>
	</head>
	<body>
		<table id="tjyx_table"></table>

	</body>
</html>
